import request from '@/utils/request'


// 查询 定价配置列表
export function queryContractCfg(query) {
    return request({
        url: '/pricing/optionContract/queryContractCfg.action',
        method: 'get',
        params: query
    })
}
// 查询  利率行情
export function queryTirSeriesByPage(param) {
    return request({
        url: '/pricing/optionContract/queryTirSeriesByPage.action',
        method: 'get',
        params: param
    })
}
// 查询 是否有利率行情
export function queryTirSeries(param) {
    return request({
        url: '/pricing/optionContract/queryTirSeries.action',
        method: 'get',
        params: param
    })
}



// 查询
export function queryTirSeriesCurve(params) {
    return request({
        url: '/pricing/optionContract/queryTirSeriesCurve.action',
        method: 'get',
        params: params
    })
}

//
export function getMaxTirSwapSeriesData(param) {
    return request({
        url: '/pricing/optionContract/getMaxTirSwapSeriesData.action',
        method: 'get',
        params: param
    })
}

//
export function insertContractCfg(params) {
    return request({
        url: '/pricing/optionContract/insertContractCfg.action',
        method: 'get',
        params: params
    })
}

// 删除
export function updateContractCfg(params) {
    return request({
        url: '/pricing/optionContract/updateContractCfg.action',
        method: 'get',
        params:params
    })
}

//
export function deleteContractCfg(params) {
    return request({
        url: '/pricing/optionContract/deleteContractCfg.action',
        method: 'get',
        params: params
    })
}


/** 标的
 * *********************************/


//
export function queryTargetParamCfgByPage(params) {
    return request({
        url: '/pricing/targetParamController/queryTargetParamCfgByPage.action',
        method: 'get',
        params: params
    })
}


// 查询
export function queryTargetParamCfg(params) {
    return request({
        url: '/pricing/targetParamController/queryTargetParamCfg.action',
        method: 'get',
        params: params
    })
}

//查询
export function insertTargetParamCfg(params) {
    return request({
        url: '/pricing/targetParamController/insertTargetParamCfg.action',
        method: 'get',
        params: params
    })
}

//
export function updateTargetParamCfg(params) {
    return request({
        url: '/pricing/targetParamController/updateTargetParamCfg.action',
        method: 'get',
        params: params
    })
}

//
export function deleteTargetParamCfg(params) {
    return request({
        url: '/pricing/targetParamController/deleteTargetParamCfg.action',
        method: 'get',
        params: params
    })
}



